import request from '#/utils/requestAbort.js';
const baseApi = '/private-business';
const oldBaseApi = '/distribution';

///powerForeAdjustItera/queryPriceDiffCurve
// 查询价差曲线-天机预测
export async function tianjiChartService(params) {
  return request(baseApi + '/powerForeAdjustItera/findSpotPriceDifferencePriceForecast', {
    method: 'POST',
    data: params,
  });
}

// 查询价差曲线-历史预测
export async function historyChartService(params) {
  return request(baseApi + '/powerForeAdjustItera/queryPriceDiffCurve', {
    method: 'POST',
    data: params,
  });
}

// 调整策略编辑列表数据
export function postQueryRateData(params) {
  return request(baseApi + '/powerForeAdjustItera/queryRateData', {
    method: 'POST',
    data: params,
  });
}

// 功率预测及模拟调整
export function postQueryForecastAndSimulate(params) {
  return request(baseApi + '/powerForeAdjustItera/queryForecastAndAdjustmentResults', {
    method: 'POST',
    data: params,
  });
}

//人工策略图表数据
export function queryForecastAndManualStrategy(params) {
  return request(baseApi + '/powerForeAdjustItera/queryForecastAndManualStrategy', {
    method: 'POST',
    data: params,
  });
}

// 查询操作日志
export async function postFindOperationLog(params) {
  return request(baseApi + '/powerForeAdjustItera/findOperationLog', {
    method: 'POST',
    data: params,
  });
}

// 保存调整比例数据
export async function postAdjustProportionData(params) {
  return request(baseApi + '/powerForeAdjustItera/adjustProportionData', {
    method: 'POST',
    data: params,
  });
}

//人工策略AI策略启用数据
export async function enableAI(params) {
  return request(baseApi + '/powerForeAdjustItera/enableAi', {
    method: 'POST',
    data: params,
  });
}

// 查询上次引用的交易单元
export async function postQueryLastQuoteStation(params) {
  return request(baseApi + '/powerForeAdjustItera/queryLastQuoteStation', {
    method: 'POST',
    data: params,
  });
}

// 查询引用结算单元集合
export async function postFindQuoteStationData(params) {
  return request(baseApi + '/powerForeAdjustItera/findQuoteStationData', {
    method: 'POST',
    data: params,
  });
}

// AI策略算法列表
export async function getAiTacticsByStationIdAndMarkDate(params) {
  return request(baseApi + '/powerForeAdjustItera/getAiTacticsByStationIdAndMarkDate', {
    method: 'POST',
    data: params,
  });
}

// AI策略图表数据
export async function queryForecastAndAiTactics(params) {
  return request(baseApi + '/powerForeAdjustItera/queryForecastAndAiTactics', {
    method: 'POST',
    data: params,
  });
}

// 查询申报计划列表
export async function postQueryIssuePlanList(params) {
  return request(baseApi + '/powerForeAdjustItera/queryIssuePlanList', {
    method: 'POST',
    data: params,
  });
}

// AI策略默认启用状态
export async function postShowAiStrategy(stationId) {
  return request(baseApi + `/powerForeAdjustItera/${stationId}`, {
    method: 'GET',
  });
}

// 查询申报详情数据
export async function postQueryShortForecastCurveAdjustment(params) {
  return request(baseApi + '/powerForeAdjustItera/shortForecastCurveAdjustment', {
    method: 'POST',
    data: params,
  });
}
